<div class="main">
    	<div class="lanmu">
        	<a href="javascript:;" onclick = 'AddFavorite(document.location.href, document.title);' class="jrsc">加入收藏</a>
            <p class="login">
                您好，欢迎您来到陕西秦文票务网！ 
                <!--nocache-->  
                <?php $Auth = $this->Session->read('Auth.User');?>
                <?php if(!empty($Auth)):?>
                	<?php 
                		$showname = ($Auth['name'])?$Auth['name']:$Auth['email'];
                		echo $this->Html->link($showname,citylink('Users','index'))?> | 
	                <?php echo $this->Html->link('退出',citylink('Users','logout'))?>
                <?php else :?>
	                <?php echo $this->Html->link('免费注册',citylink('Users','register'))?> | 
	                <?php echo $this->Html->link('登录',citylink('Users','login'))?>
                <?php endif;?>
                <!--/nocache-->
            </p>
            <p class="glRight">
            	<?php echo $this->Html->link('购物车<span id = "cart_count">0</span>件',citylink('Carts','view','cart'),array('class'=>'gwc','escape'=>false))?>
            	<?php if(false):?>
                <a href="#" class="mydd">我的订单</a>
                <?php endif;?>
            </p>
            <script>
            	$(function(){CART.getCount();});
            </script>
        </div>
        <div class="clear"></div>
        <div class="logo floatl">
        	<h1>
        		<?php echo $this->Html->image('default/logo.jpg',array('url'=>array('controller'=>'Index','action'=>'index','plugin'=>false)))?>
        	</h1>
        	<?php if(false):?>
            <div class="city">
            	<a href="javascript:;" id = 'switch_hander' class="cityQh">城市切换</a>
            	<div class = 'site_switch'>
          			<?php foreach ($switch_cache as $site){
          					if ($site['SysWebsite']['sign']==$CITYSIGN) {
          						$sitename = $site['SysWebsite']['title'];
          					}
							echo $this->Html->link($site['SysWebsite']['title'],array($site['SysWebsite']['sign']=>true,'plugin'=>false,'controller'=>'Index','action'=>'index','ext'=>'html'));
          					echo '<br/>';
          				}
          			?>  		
            	</div>
            </div>
        	<div class = 'current'><?php echo $sitename;?></div>
        	<?php endif;?>
        </div>
        <?php echo $this->element('default/search')?>
        <div class="rexian floatr">
        	<?php echo $this->Html->image('default/rximg.gif')?>
        </div>
        <div class="clear"></div>
        <?php echo $this->element('default/menu')?>
    </div>